<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>笔记列表页</h1>
    <p><a href="/add">新增笔记</a></p>
    <ul>
        <% for(let i = 0; i<data.length;i++){ %>
            <li><%=data[i].title %> 
                <a href="/edit/<%=data[i]._id%>">编辑</a> 
                <a href="/del?_id=<%=data[i]._id%>">删除</a>
            </li>
        <% }%>
    </ul>
</body>
</html>